Consolidate Lobbyside widgets and add second public widget#3853
Merged
sarupbanskota merged 2 commits intomainfrom Apr 21, 2026
Merged
Consolidate Lobbyside widgets and add second public widget#3853sarupbanskota merged 2 commits intomainfrom
sarupbanskota merged 2 commits intomainfrom
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Test Results 1 files ± 0 1 suites ±0 6m 31s ⏱️ + 1m 35s For more details on these failures and errors, see this check. Results for commit 9b1a099. ± Comparison against base commit 31c101d. This pull request removes 20 and adds 386 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
❌ 16 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Bundle ReportChanges will increase total bundle size by 942 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: client-array-pushAssets Changed:
Files in
|
…mponent Collapses LobbysideWidget, LobbysideStaffWidget, and the new LobbysideSecondaryWidget (all near-identical copies) into one <LobbysideWidget @widgetId @Audience> component invoked three times from application.hbs. - Derives the per-instance script DOM id from @widgetId - Switches all three instances to the preferred data-widget-id attribute - Adds a typed window.Lobbyside declaration (removes per-file eslint-disable any pragmas) - Re-syncs visitor data when the user logs in/out via did-update keyed on authenticator.currentUserId (previously only synced on script onload, so post-load logins left visitor data stale) - Extracts the staff allowlist (vishaag, dronaxis) to utils/staff-allowlist and reuses it from services/beacon, where the same usernames were inlined Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
b0d7150e-..., shown to all visitors)LobbysideWidget,LobbysideStaffWidget, the new secondary one) into a single parametrized<LobbysideWidget @widgetId @audience />invoked three times fromapplication.hbsdata-widget-idattributevishaag,dronaxis) toutils/staff-allowlistand reuses it fromservices/beaconwhere the same usernames were inlinedwindow.Lobbysidedeclaration, removing the per-fileeslint-disableanypragmasNet: 9 files changed, 59 insertions, 152 deletions.
Test plan
<script id="lobbyside-widget-{uuid}">tags are injected, all loadinghttps://lobbyside.com/widget.js665ad94a-...) is not rendered; the other two areLobbyside.setVisitorruns again with the new user's email/name/github🤖 Generated with Claude Code